Change(ChangeReason, T) constructor¶
Defined in
Type: ChangeReactiveList.Reactive.Core Assembly: ReactiveList.Reactive.dll
Applies to
net11.0, net10.0, net47, net471, net472, net48, net481
Overloads¶
public Change(ChangeReason reason, T current)public Change(ChangeReason reason, T current, T? previous)public Change(ChangeReason reason, T current, T? previous, int currentIndex)public Change(ChangeReason reason, T current, T? previous, int currentIndex, int previousIndex)
1. Overload¶
public Change(ChangeReason reason, T current)
View source (opens in a new tab)
Summary: Initializes a new instance of the Change class.
Parameters
| Name | Type | Description |
|---|---|---|
reason | ChangeReason | The reason for the change. |
current | T | The current/new item value. |
2. Overload¶
public Change(ChangeReason reason, T current, T? previous)
View source (opens in a new tab)
Summary: Initializes a new instance of the Change class.
Parameters
| Name | Type | Description |
|---|---|---|
reason | ChangeReason | The reason for the change. |
current | T | The current/new item value. |
previous | T? | The previous item value (for updates). |
3. Overload¶
public Change(ChangeReason reason, T current, T? previous, int currentIndex)
View source (opens in a new tab)
Summary: Initializes a new instance of the Change class.
Parameters
| Name | Type | Description |
|---|---|---|
reason | ChangeReason | The reason for the change. |
current | T | The current/new item value. |
previous | T? | The previous item value (for updates). |
currentIndex | int (opens in a new tab) | The current index of the item, or -1 if not applicable. |
4. Overload¶
public Change(ChangeReason reason, T current, T? previous, int currentIndex, int previousIndex)
View source (opens in a new tab)
Summary: Initializes a new instance of the Change struct.
Parameters
| Name | Type | Description |
|---|---|---|
reason | ChangeReason | The reason for the change. |
current | T | The current/new item value. |
previous | T? | The previous item value (for updates). |
currentIndex | int (opens in a new tab) | The current index of the item, or -1 if not applicable. |
previousIndex | int (opens in a new tab) | The previous index of the item (for moves), or -1 if not applicable. |